package com.sc.thread.threadcommunication;

/**
 * Created by Shen Chao on 2018-07-03-003.
 */
public class CPTest {
    public static void main(String[] args) {
        //共享同一个共享资源
        ShareCached shareCached = new ShareCached();
        //启动消费者线程
        new Consumer(shareCached).start();
        //启动生产者线程
        new Producer(shareCached).start();
    }
}
